.class public Lcom/netease/netstat/statistics/NetWorkInfoTest;
.super Lcom/netease/netstat/statistics/BaseTest;
.source "NetWorkInfoTest.java"


# direct methods
.method public constructor <init>(Landroid/telephony/TelephonyManager;Landroid/net/ConnectivityManager;Lcom/netease/netstat/utils/FileService;)V
    .locals 0
    .parameter "telephony"
    .parameter "connectivity"
    .parameter "file"

    .prologue
    .line 18
    invoke-direct {p0, p1, p2, p3}, Lcom/netease/netstat/statistics/BaseTest;-><init>(Landroid/telephony/TelephonyManager;Landroid/net/ConnectivityManager;Lcom/netease/netstat/utils/FileService;)V

    .line 19
    return-void
.end method


# virtual methods
.method public getnetworkinfo()V
    .locals 2

    .prologue
    .line 22
    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->telephony:Landroid/telephony/TelephonyManager;

    if-eqz v1, :cond_0

    sget-boolean v1, Lcom/netease/netstat/utils/Contanst;->airline:Z

    if-nez v1, :cond_0

    .line 23
    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->telephony:Landroid/telephony/TelephonyManager;

    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getNetworkOperatorName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setOperatername(Ljava/lang/String;)V

    .line 26
    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->telephony:Landroid/telephony/TelephonyManager;

    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getNetworkType()I

    move-result v0

    .line 27
    .local v0, networktype:I
    packed-switch v0, :pswitch_data_0

    .line 69
    .end local v0           #networktype:I
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->connectivity:Landroid/net/ConnectivityManager;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->connectivity:Landroid/net/ConnectivityManager;

    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 71
    iget-object v1, p0, Lcom/netease/netstat/statistics/NetWorkInfoTest;->connectivity:Landroid/net/ConnectivityManager;

    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->getType()I

    move-result v1

    packed-switch v1, :pswitch_data_1

    .line 83
    :cond_1
    :goto_1
    return-void

    .line 29
    .restart local v0       #networktype:I
    :pswitch_0
    const-string v1, "NETWORK_TYPE_UNKNOWN"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 32
    :pswitch_1
    const-string v1, "NETWORK_TYPE_GPRS"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 35
    :pswitch_2
    const-string v1, "NETWORK_TYPE_EDGE"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 38
    :pswitch_3
    const-string v1, "NETWORK_TYPE_UMTS"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 41
    :pswitch_4
    const-string v1, "NETWORK_TYPE_HSDPA"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 44
    :pswitch_5
    const-string v1, "NETWORK_TYPE_HSUPA"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 47
    :pswitch_6
    const-string v1, "NETWORK_TYPE_HSPA"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 50
    :pswitch_7
    const-string v1, "NETWORK_TYPE_CDMA"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 53
    :pswitch_8
    const-string v1, "NETWORK_TYPE_EVDO_0"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 56
    :pswitch_9
    const-string v1, "NETWORK_TYPE_EVDO_A"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 59
    :pswitch_a
    const-string v1, "NETWORK_TYPE_1xRTT"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 62
    :pswitch_b
    const-string v1, "NETWORK_TYPE_IDEN"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setNetworktype(Ljava/lang/String;)V

    goto :goto_0

    .line 73
    .end local v0           #networktype:I
    :pswitch_c
    const-string v1, "MOBILE"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setConnectivity(Ljava/lang/String;)V

    goto :goto_1

    .line 76
    :pswitch_d
    const-string v1, "WIFI"

    invoke-static {v1}, Lcom/netease/netstat/utils/Contanst;->setConnectivity(Ljava/lang/String;)V

    goto :goto_1

    .line 27
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_b
    .end packed-switch

    .line 71
    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_c
        :pswitch_d
    .end packed-switch
.end method
